package 每日练习;

public class text21 {
    public static void main(String[] args) {
        int i = 0;
        int count = 0;
        int sum = 0;
        for(i=1;i<=100;i++)
        {
            if(i%7==0)
            {
                System.out.print(i+" ");
                sum += i;
                count++;
            }
        }
        System.out.println("\n"+"总数"+sum);
        System.out.println("个数"+count);
    }
}
